
//Specify background images to slide
var bgslides=new Array()
bgslides[0]="/images/site/slider-banner/banner-01.jpg"
bgslides[1]="/images/site/slider-banner/banner-02.jpg"
bgslides[2]="/images/site/slider-banner/banner-03.jpg"
bgslides[3]="/images/site/slider-banner/banner-04.jpg"


//Specify interval between slide (in miliseconds)
var speed=5000

//preload images
var processed=new Array()
for (i=0;i<bgslides.length;i++){
processed[i]=new Image()
processed[i].src=bgslides[i]
}

var inc=-1

function slideback(){
if (inc<bgslides.length-1)
inc++
else
inc=0
document.body.background=processed[inc].src
}

if (document.all||document.getElementById)
window.onload=new Function('setInterval("slideback()",speed)')


